import service from '@/api/http'
export const department = {

    getDepartment(p) {
        return service.get('/department', {
            params: p
        })
    },

    addDepartment(p) {
        return service.put('/department/add', p)
    },

    updateDepartment(p) {
        return service.post('/department/update', p)
    },

    deleteDepartment(p) {
        return service.delete('/department/delete', {
            data: p
        })
    },

    // 获取部门列表
    getDepartmentList() {
        return service.get('/department/getDepartmentList')
    },

    // 获取部门信息
    getDepartmentInfo() {
        return service.get('/department/getDepartmentInfo')
    },


















}